

/**
 * 配置字段的公用方法--苏农
 * 
 */

// eslint-disable-next-line no-undef
FilterFuns = {
  basicFilterOption: function (valueArray, formInfo) {
    return {
      labelWidth: 90,
      emptyBtn: false,
      submitBtn: false,
      enter: false,
      column: [
        {
          label: "工单编号",
          prop: "workOrderId",
          type: "input",
          span: 8,
          display: true
        },
        {
          label: '状态',
          prop: "workOrderStatusId",
          type: "select",
          span: 8,
          display: true,
          dicData: valueArray['workOrderStatusId'],
          change: ({
            value,
            column
          }) => {
            formInfo[column.prop] = value;
          }
        },
        // 苏农定制字段
        {
          label: "客户姓名",
          prop: "customer_name",
          type: "input",
          display: true,
          dataType: "string",
          span: 8
        },
        {
          label: '来电号码',
          prop: "phone_number",
          dataType: "string",
          display: true,
          type: "input",
          span: 8
        },
        {
          label: '工单来源',
          prop: "source",
          display: true,
          type: "select",
          span: 8,
          dicData: valueArray['source'],
          change: ({
            value,
            column
          }) => {
            formInfo[column.prop] = value;
          }
        },
        {
          label: "优先级",
          prop: "priority",
          display: true,
          type: "select",
          span: 8,
          dicData: valueArray['priority'],
          change: ({
            value,
            column
          }) => {
            formInfo[column.prop] = value;
          }
        },
        {
          label: "业务类型",
          prop: "business_type",
          display: true,
          type: "select",
          span: 8,
          dicData: valueArray['business_type'],
          change: ({
            value,
            column
          }) => {
            formInfo[column.prop] = value;
          }
        },
        {
          label: "工单类型",
          prop: "order_type",
          display: true,
          type: "select",
          span: 8,
          dicData: valueArray['order_type'],
          change: ({
            value,
            column
          }) => {
            formInfo[column.prop] = value;
          }
        },
        {
          label: "处理人涉及机构",
          prop: "handle_institution",
          display: true,
          type: "cascader",
          span: 8,
          checkStrictly: true, 
          dicData: valueArray['handle_institution'],
          change: ({
            value,
            column
          }) => {
            formInfo[column.prop] = value;
          }
        },
        {
          label: "创建时间",
          prop: "createTime",
          valueFormat: "yyyy-MM-dd HH:mm:ss",
          type: "datetimerange",
          display: true,
          defaultTime: ['00:00:00', '23:59:59'],
          span: 10,
          change: ({
            value,
            column
          }) => {
            formInfo[column.prop] = value;
          }
        },
      ]
    };
  },
  advanceFilterOption:function (valueArray, formInfo) {
    return {
      column: [
      ]
    }
  }
}

